package eliauk.fun.flowabledemo.listener.government;

import eliauk.fun.flowabledemo.FlowableConstant;
import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.stereotype.Component;

@Component("PlusNodeListener")
@Slf4j
public class PlusNodeListener implements ExecutionListener {
    @Override
    public void notify(DelegateExecution execution) {
        String checkResult = (String) execution.getVariable(FlowableConstant.CHECK_RESULT);
        if (checkResult != null) {
            log.info("终于结束了…………………………………………………………………………………………");
        }
    }

}
